package com.ljz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@TableName(value = "spu")
@NoArgsConstructor
@AllArgsConstructor
public class Spu {
    @TableId(value = "spu_id",type = IdType.AUTO)
    Long spu_id;
    Long brand_id;
    Long category_id;
    Long shop_category_id;
    Long shop_id;
    String name;
    String selling_point;
    String main_img_url;
    String img_urls;
    String video;
    Long price_fee;
    Long market_price_fee;
    Integer status;
    Integer has_sku_img;
    Integer seq;

    @TableField(exist = false)
    List<Sku> skuList;

    @TableField(exist = false)
    List<Attr> attrList;

    @TableField(exist = false)
    String detail;

}
